﻿// AtlObject.cpp: CAtlObject 的实现

#include "pch.h"
#include "AtlObject.h"
#include <stdio.h>


// CAtlObject



STDMETHODIMP CAtlObject::Test()
{
    BSTR lpbString = SysAllocStringLen(L"Hello\0WOrld", 11);

    CComBSTR ComBstr;
    ComBstr.AssignBSTR(lpbString);

    int n = ComBstr.Length();

    return S_OK;
}
